package com.wfs.suanfa.spring.ioc;

import com.wfs.suanfa.spring.model.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author wfs
 * @date 2021/1/11 20:19
 */
public class IocTestOne {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
        Person person = ctx.getBean("person", Person.class);
        System.out.println(person);
    }

}
